home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_014 / termcap / makefile < prev    next >
Makefile  |  1992-05-06  |  1KB  |  77 lines

  1. #
  2. #  FILE
  3. #
  4. #    Makefile    build termcap library
  5. #
  6. #  KEY WORDS
  7. #
  8. #    libraries
  9. #    test functions
  10. #
  11. #  SYNOPSIS
  12. #
  13. #    make        compile the library sources
  14. #    make tests    compile sources for tests
  15. #
  16. #  DESCRIPTION
  17. #
  18. #    Standard make file for building the termcap library and tests.
  19. #
  20. #  AUTHOR
  21. #
  22. #    Fred Fish
  23. #
  24.  
  25. CC =        cc
  26.  
  27. TSOURCES =    testtcp.c 
  28. LSOURCES =    tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c
  29. XSOURCES =    isdigit.c fgetlr.c
  30.  
  31. TOBJECTS =    testtcp.o
  32. LOBJECTS =    tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o tputs.o
  33. XOBJECTS =    isdigit.o fgetlr.o
  34.  
  35. all :        library tests
  36.  
  37. library :    $(LOBJECTS) $(XOBJECTS)
  38.  
  39. tgetent.o :    tgetent.c
  40.         $(CC) -c $(CFLAGS) tgetent.c
  41.  
  42. tgetflag.o :    tgetflag.c
  43.         $(CC) -c $(CFLAGS) tgetflag.c
  44.  
  45. tgetnum.o :    tgetnum.c
  46.         $(CC) -c $(CFLAGS) tgetnum.c
  47.  
  48. tgetstr.o :    tgetstr.c
  49.         $(CC) -c $(CFLAGS) tgetstr.c
  50.  
  51. tgoto.o :    tgoto.c
  52.         $(CC) -c $(CFLAGS) tgoto.c
  53.  
  54. tputs.o :    tputs.c
  55.         $(CC) -c $(CFLAGS) tputs.c
  56.  
  57. fgetlr.o :    fgetlr.c
  58.         $(CC) -c $(CFLAGS) fgetlr.c
  59.  
  60. isdigit.o :    isdigit.c
  61.         $(CC) -c $(CFLAGS) isdigit.c
  62.  
  63. tests :        testtcp
  64.  
  65. testtcp :    testtcp.o $(LOBJECTS) $(XOBJECTS)
  66.         $(CC) -o testtcp testtcp.o $(LOBJECTS) $(XOBJECTS)
  67.  
  68. testtcp.o :    testtcp.c
  69.         $(CC) -c $(CFLAGS) testtcp.c
  70.  
  71. #
  72. #    Clean up the directory.
  73. #
  74.  
  75. clean :
  76.         rm -f *.o *.BAK *.bak nohup.out *.CKP *.tmp 
  77.